#include "cworktime.h"

CWorkTime::CWorkTime() {}

void CWorkTime::update(const QTime & rWorkStartTime, const QTime & rWorkEndTime)
{
    mWorkStartTime = rWorkStartTime;
    mWorkEndTime = rWorkEndTime;
    miTimeDiffS = mWorkStartTime.secsTo(mWorkEndTime);
    mfTimeDiffH = (float)miTimeDiffS / 3600;
}
